package com.cloudkinto.vo.operate;

import lombok.Data;
import org.apache.commons.lang.StringUtils;

import java.util.Date;

;

@Data
public class OperateRecordVo {

    private Long id;

    /**
     * 对应表的主键
     */
    private Long thirdId;

    /**
     * 操作内容key
     */
    private String content;

    /**
     * 备注
     */
    private String remarks;

    private Integer type;

    /**
     * 操作时间
     */
    private Date operateTime;

    /**
     * 操作人员id
     */
    private Long operateBy;

    private String operateUsername;


    /**
     * 操作内容value
     */
    private String contentValue;

    public String getOperateUsername() {
        if (StringUtils.isBlank(operateUsername)) {
            return "system";
        }
        return operateUsername;
    }
}
